@(userForm : Form[User])
@import play.api.Play.current
@import play.api.i18n.Messages.Implicits._
@main("添加用户") {
    <a href="@routes.UserController.list">用户列表</a>
    @helper.form(action = routes.UserController.addPost()) {
        <table class="table">
            <tr>
                <th colspan="2"> 添加用户</th>
            </tr>
            <tr>
                <td>id</td>
                <td>@helper.inputText(userForm("id"))</td>
            </tr>
            <tr>
                <td>用户名</td>
                <td>@helper.inputText(userForm("name"))</td>
            </tr>
            <tr>
                <td>密码</td>
                <td>@helper.inputPassword(userForm("password"))</td>
            </tr>
            <tr>
                <td>介绍</td>
                <td>@helper.inputText(userForm("description"))</td>
            </tr>
            <tr>
                <td colspan="2"><button type="submit">提交</button></td>
            </tr>
        </table>
    }

}